﻿@model MobileSales.Model.Tasks.Task


@{
    View.Title = Strings.Tasks + " - " + Strings.Delete;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Strings.Tasks &nbsp;&raquo;&nbsp; @Strings.Delete</h2>

<h3>@Strings.AreYouSureWhatToDeleteThis</h3>
<fieldset>
    <legend>@Strings.Fields</legend>

    @if (Model.ClientId.HasValue)
    {
    <div class="display-label">@ModelStrings.Client</div>
    <div class="display-field">@Html.ClientIdentity(Model.ClientId.Value)</div>
    }

    <div class="display-label">@ModelStrings.Info</div>
    <div class="display-field">@Model.Info</div>

    <div class="display-label">@ModelStrings.Priority</div>
    <div class="display-field">@Model.Priority</div>

    <div class="display-label">@ModelStrings.CreationDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.CreationDate)</div>

    <div class="display-label">@ModelStrings.ModificationDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.ModificationDate)</div>

    <div class="display-label">@ModelStrings.StartTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.StartTime)</div>

    <div class="display-label">@ModelStrings.EndTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.EndTime)</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        @Html.Hidden("taskDate", ViewData["taskDate"])
        @Html.Hidden("tskCount", ViewData["tskCount"])
        @Html.Hidden("employeeId", ViewData["employeeId"])
            
        <input type="submit" value="@Strings.Delete" /> |
        @Html.ActionLink(Strings.BackToList, "Details", "Schedules", new { employeeId = ViewData["employeeId"], date = Model.StartTime.ToShortDateString() }, new { @class = "icon-button prev-icon" })
        
    </p>
}


